package com.google.code.sharecontent.dao.impl;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

import com.google.code.sharecontent.dao.GroupDao;
import com.google.code.sharecontent.model.Group;

public class GroupDaoImpl extends BaseDaoImpl<Group> implements GroupDao {

	public GroupDaoImpl(Connection conn) {
		super(conn);
	}

	public Group createByRow(ResultSet rs) throws SQLException {
		Group group = new Group();
		group.setId(rs.getInt("ID"));
		group.setName(rs.getString("NAME"));
		group.setCode(rs.getString("CODE"));
		// TODO Auto-generated method stub
		return group;
	}

	protected String getTableName() {
		return "GROUPS";
	}

	@Override
	protected PreparedStatement putPrepareStatement(PreparedStatement pStat,
			Group status)throws SQLException {
		return null;
	}

}
